/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package unplag.core;

import java.io.File;

/**
 *
 * @author Administrator
 */
public class FileFormat {
    String extensions;
    String name;
    public FileFormat(String name,String extensions){
        this.extensions=extensions;
        this.name=name;
    }
    public String getName(){
        return name;
    }
    public boolean accept(File file){
        return file.getName().endsWith("."+extensions);
    }
}
